From 109f34b8f7f566152fa48e8a9d79919f2472fcf2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 4 Oct 2018 15:44:32 +0100 Subject: [PATCH] xenstore-utils: Hardlink the various xenstore-* programs together This is an argv[0]-using binary of which we could have only one copy. Signed-off-by: Ian Jackson --- debian/control | 1 + debian/rules | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/debian/control b/debian/control index b8922b8a08..62d8d72058 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,7 @@ Build-Depends: debhelper (>> 9), autotools-dev, dpkg-dev (>= 1.16.0~), + rdfind, lsb-release, python-dev, bcc [i386 amd64], diff --git a/debian/rules b/debian/rules index 7672889bdd..d3f67b0463 100755 --- a/debian/rules +++ b/debian/rules @@ -255,9 +255,16 @@ override_dh_strip: dh_strip chmod -x debian/xen-utils-*/usr/lib/xen-*/boot/hvmloader +# Hardlink the various xenstore-* programs together. This is an +# argv[0]-using binary of which we can have only one copy. We need to +# do this late, because dh_strip breaks hardlinks. +# # The debug files are fairly large, fairly rarely used, # and not compressed by the upstream build system. override_dh_compress: + rdfind -makehardlinks true -makeresultsfile false \ + debian/xenstore-utils/usr/bin + : dh_compress find debian/xen-hypervisor-*/usr/lib/debug -type f -print0 \ | xargs -0r gzip -9v -- 2.30.2